Automattic\WooCommerce\Blocks\Domain\Services\CheckoutFields C

Total Complexity 122
Dependencies 5
Dependents 12
Total lines 1,054
Lines of code 626
Logical lines of code 266
Comment lines 305
Methods 32
Properties 5

Methods 32

Method Rating Maintainability Complexity Lines of code
validate_options()
A
43 12 50
format_meta_data()
A
49 13 31
set_array_meta()
A
48 10 34
get_field_from_object()
A
50 10 28
process_select_field()
A
47 9 36
__construct()
A
33 1 143
register_checkout_field()
A
48 8 36
register_field_attributes()
A
47 7 37
validate_field_for_location()
S
50 5 32
validate_field()
S
49 4 36
get_order_additional_fields_with_values()
S
57 5 16
format_additional_field_value()
S
62 5 10
persist_field_for_order()
S
63 4 11
get_all_fields_from_customer()
S
55 3 20
update_default_locale_with_fields()
S
67 3 8
process_checkbox_field()
S
64 3 9
get_field_location()
S
67 3 8
get_fields_for_location()
S
61 2 13
get_all_fields_from_order()
S
60 2 13
get_field_from_order()
S
79 1 3
add_fields_data()
S
74 1 4
filter_fields_for_customer()
S
65 1 10
get_core_fields()
S
82 1 3
get_additional_fields()
S
82 1 3
get_field_from_customer()
S
79 1 3
get_address_fields_keys()
S
80 1 3
persist_field_for_customer()
S
79 1 3
is_field()
S
79 1 3
init()
S
75 1 4
get_additional_fields_keys()
S
80 1 3
get_contact_fields_keys()
S
80 1 3
get_order_only_fields()
S
65 1 10